<?php
/**
 * 描述：企业商铺-采购信息。
 */
final class Exec_Store_Procurement extends Exec_Store_Public
{
    public function Get()
    {
        #获取参数
        $account=parent::Get();

        #获取采购信息数据
        $procurements=DB::PGetData('select * from procurement where Account=? limit ?,12',array($account['Username']));
        foreach($procurements['Record'] as $key=>$value)
        {
            $procurements['Record'][$key]['ThumbnailPath']=Config::PATH_RELATIVE_ATTACHMENT_SUPPLY.'/'.$procurements['Record'][$key]['ThumbnailPath'];
        }        
        View::Assign('Procurements',$procurements['Record']);
        View::Assign('PageMenu',PagerFactory::Create('Common')->Fetch($supplies,array
        (
            'URL'=>'exec.php?action=store_procurement&id='.$account['ID'],
            'IsDetail'=>TRUE,
            'Rewriter'=>new PagerRewrite('/store/'.$account['ID'].'/procurement','','html')
        )));

        #渲染输出
        View::Display('store/procurement.tpl');
    }
}
?>